/*
 * @Author: 撒哈拉的花儿 30940518@qq.com
 * @Date: 2023-08-11 23:50:05
 * @LastEditors: 撒哈拉的花儿 30940518@qq.com
 * @LastEditTime: 2024-10-30 23:57:48
 * @FilePath: \qy_portal_foreend\src\api\Bl\order\OrderGoods.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询订单商品列表
export function listOrderGoods(query) {
  return request({
    url: '/bl/orderGoods/list',
    method: 'get',
    params: query
  })
}

// 查询订单商品详细
export function getOrderGoods(orderGoodsId) {
  return request({
    url: '/bl/orderGoods/' + orderGoodsId,
    method: 'get'
  })
}

// 新增订单商品
export function addOrderGoods(data) {
  return request({
    url: '/bl/orderGoods',
    method: 'post',
    data: data
  })
}

// 修改订单商品
export function updateOrderGoods(data) {
  return request({
    url: '/bl/orderGoods',
    method: 'put',
    data: data
  })
}

// 删除订单商品
export function delOrderGoods(orderGoodsId) {
  return request({
    url: '/bl/orderGoods/' + orderGoodsId,
    method: 'delete'
  })
}
